package com.jell.purchase.model;

import java.io.Serializable;
import java.util.Date;

/**
 * 订单轨迹表
 * p_opt_node_instance
 */
public class OptNodeInstanceDo implements Serializable {
    /**
     * ID
     * p_opt_node_instance.id
     */
    private Integer id;

    /**
     * 所属对象
     * p_opt_node_instance.object_id
     */
    private Integer objectId;

    /**
     * 对象类型\r\n            O:订单\r\n
     * p_opt_node_instance.object_type
     */
    private String objectType;

    /**
     * 关联对象ID
     * p_opt_node_instance.rel_id
     */
    private Integer relId;

    /**
     * 关联对象类型
     * p_opt_node_instance.rel_type
     */
    private String relType;

    /**
     * 操作人
     * p_opt_node_instance.opt_by
     */
    private Integer optBy;

    /**
     * 操作时间
     * p_opt_node_instance.opt_dt
     */
    private Date optDt;

    /**
     * 操作类型
     * p_opt_node_instance.opt_type
     */
    private String optType;

    /**
     * 操作状态
     * p_opt_node_instance.opt_status
     */
    private String optStatus;

    /**
     * 操作备注
     * p_opt_node_instance.memo
     */
    private String memo;

    /**
     * 状态
     * p_opt_node_instance.sts
     */
    private String sts;

    /**
     * p_opt_node_instance
     */
    private static final long serialVersionUID = 1L;

    /**
     * p_opt_node_instance.id
     * @return the value of p_opt_node_instance.id
     */
    public Integer getId() {
        return id;
    }

    /**
     * p_opt_node_instance.id
     * @param id the value for p_opt_node_instance.id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * p_opt_node_instance.object_id
     * @return the value of p_opt_node_instance.object_id
     */
    public Integer getObjectId() {
        return objectId;
    }

    /**
     * p_opt_node_instance.object_id
     * @param objectId the value for p_opt_node_instance.object_id
     */
    public void setObjectId(Integer objectId) {
        this.objectId = objectId;
    }

    /**
     * p_opt_node_instance.object_type
     * @return the value of p_opt_node_instance.object_type
     */
    public String getObjectType() {
        return objectType;
    }

    /**
     * p_opt_node_instance.object_type
     * @param objectType the value for p_opt_node_instance.object_type
     */
    public void setObjectType(String objectType) {
        this.objectType = objectType == null ? null : objectType.trim();
    }

    /**
     * p_opt_node_instance.rel_id
     * @return the value of p_opt_node_instance.rel_id
     */
    public Integer getRelId() {
        return relId;
    }

    /**
     * p_opt_node_instance.rel_id
     * @param relId the value for p_opt_node_instance.rel_id
     */
    public void setRelId(Integer relId) {
        this.relId = relId;
    }

    /**
     * p_opt_node_instance.rel_type
     * @return the value of p_opt_node_instance.rel_type
     */
    public String getRelType() {
        return relType;
    }

    /**
     * p_opt_node_instance.rel_type
     * @param relType the value for p_opt_node_instance.rel_type
     */
    public void setRelType(String relType) {
        this.relType = relType == null ? null : relType.trim();
    }

    /**
     * p_opt_node_instance.opt_by
     * @return the value of p_opt_node_instance.opt_by
     */
    public Integer getOptBy() {
        return optBy;
    }

    /**
     * p_opt_node_instance.opt_by
     * @param optBy the value for p_opt_node_instance.opt_by
     */
    public void setOptBy(Integer optBy) {
        this.optBy = optBy;
    }

    /**
     * p_opt_node_instance.opt_dt
     * @return the value of p_opt_node_instance.opt_dt
     */
    public Date getOptDt() {
        return optDt;
    }

    /**
     * p_opt_node_instance.opt_dt
     * @param optDt the value for p_opt_node_instance.opt_dt
     */
    public void setOptDt(Date optDt) {
        this.optDt = optDt;
    }

    /**
     * p_opt_node_instance.opt_type
     * @return the value of p_opt_node_instance.opt_type
     */
    public String getOptType() {
        return optType;
    }

    /**
     * p_opt_node_instance.opt_type
     * @param optType the value for p_opt_node_instance.opt_type
     */
    public void setOptType(String optType) {
        this.optType = optType == null ? null : optType.trim();
    }

    /**
     * p_opt_node_instance.opt_status
     * @return the value of p_opt_node_instance.opt_status
     */
    public String getOptStatus() {
        return optStatus;
    }

    /**
     * p_opt_node_instance.opt_status
     * @param optStatus the value for p_opt_node_instance.opt_status
     */
    public void setOptStatus(String optStatus) {
        this.optStatus = optStatus == null ? null : optStatus.trim();
    }

    /**
     * p_opt_node_instance.memo
     * @return the value of p_opt_node_instance.memo
     */
    public String getMemo() {
        return memo;
    }

    /**
     * p_opt_node_instance.memo
     * @param memo the value for p_opt_node_instance.memo
     */
    public void setMemo(String memo) {
        this.memo = memo == null ? null : memo.trim();
    }

    /**
     * p_opt_node_instance.sts
     * @return the value of p_opt_node_instance.sts
     */
    public String getSts() {
        return sts;
    }

    /**
     * p_opt_node_instance.sts
     * @param sts the value for p_opt_node_instance.sts
     */
    public void setSts(String sts) {
        this.sts = sts == null ? null : sts.trim();
    }

    /**
     * p_opt_node_instance
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        OptNodeInstanceDo other = (OptNodeInstanceDo) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getObjectId() == null ? other.getObjectId() == null : this.getObjectId().equals(other.getObjectId()))
            && (this.getObjectType() == null ? other.getObjectType() == null : this.getObjectType().equals(other.getObjectType()))
            && (this.getRelId() == null ? other.getRelId() == null : this.getRelId().equals(other.getRelId()))
            && (this.getRelType() == null ? other.getRelType() == null : this.getRelType().equals(other.getRelType()))
            && (this.getOptBy() == null ? other.getOptBy() == null : this.getOptBy().equals(other.getOptBy()))
            && (this.getOptDt() == null ? other.getOptDt() == null : this.getOptDt().equals(other.getOptDt()))
            && (this.getOptType() == null ? other.getOptType() == null : this.getOptType().equals(other.getOptType()))
            && (this.getOptStatus() == null ? other.getOptStatus() == null : this.getOptStatus().equals(other.getOptStatus()))
            && (this.getMemo() == null ? other.getMemo() == null : this.getMemo().equals(other.getMemo()))
            && (this.getSts() == null ? other.getSts() == null : this.getSts().equals(other.getSts()));
    }

    /**
     * p_opt_node_instance
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getObjectId() == null) ? 0 : getObjectId().hashCode());
        result = prime * result + ((getObjectType() == null) ? 0 : getObjectType().hashCode());
        result = prime * result + ((getRelId() == null) ? 0 : getRelId().hashCode());
        result = prime * result + ((getRelType() == null) ? 0 : getRelType().hashCode());
        result = prime * result + ((getOptBy() == null) ? 0 : getOptBy().hashCode());
        result = prime * result + ((getOptDt() == null) ? 0 : getOptDt().hashCode());
        result = prime * result + ((getOptType() == null) ? 0 : getOptType().hashCode());
        result = prime * result + ((getOptStatus() == null) ? 0 : getOptStatus().hashCode());
        result = prime * result + ((getMemo() == null) ? 0 : getMemo().hashCode());
        result = prime * result + ((getSts() == null) ? 0 : getSts().hashCode());
        return result;
    }
}